package com.chushouya.manager.dto.admin.user;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.general.framework.core.lang.Dates;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel("在线用户")
public class UserOnline {

    @ApiModelProperty("会话编号")
    private String tokenId;

    @ApiModelProperty("用户名称")
    private String userName;

    @ApiModelProperty("用户类型")
    private String userType;

    @ApiModelProperty("登录IP")
    private String ipAddr;

    @ApiModelProperty("登录地址")
    private String loginLocation;

    @ApiModelProperty("浏览器")
    private String browser;

    @ApiModelProperty("操作系统")
    private String os;

    @ApiModelProperty("登录时间")
    @JsonFormat(pattern = Dates.FMT_FULL_TIME)
    private Date loginTime;

    @ApiModelProperty("登录失效时间")
    @JsonFormat(pattern = Dates.FMT_FULL_TIME)
    private Date expireTime;

}
